package com.dhy.service;

import com.dhy.pojo.Department;
import com.dhy.query.DepartmentQuery;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IDepartmentService {

    @Transactional
    void insert(Department department);

    @Transactional
    void deleteById(Long id);

    @Transactional
    void update(Department department);

    Department selectById(Long id);

    List<Department> selectAll();

    Long selectPageSize();

    List<Department> selectLimit(DepartmentQuery departmentQuery);

    List<Department> selectByKey(DepartmentQuery departmentQuery);



}
